import 'package:json_annotation/json_annotation.dart';
part 'user_info_model.g.dart';


@JsonSerializable()
class FollowListResponse {
  String count;
  @JsonKey(name: "list")
  List<FollowListItem> list;

  FollowListResponse({required this.list, required this.count});

  factory FollowListResponse.fromJson(Map<String, dynamic> json) =>
      _$FollowListResponseFromJson(json);

  Map<String, dynamic> toJson() => _$FollowListResponseToJson(this);
}


@JsonSerializable()
class FollowListItem {
  String user_id; //用户ID
  String nickname; //用户昵称
  String profile_picture; // 用户头像
  String brief; //简介
  bool is_friend; // 是否好友
  int status;  //0 未关注 1 关注

  FollowListItem(
      {
        required String this.user_id,
        required String this.nickname,
        required String this.profile_picture,
        required String this.brief,
        required bool this.is_friend,
        required int this.status,});

  factory FollowListItem.fromJson(Map<String, dynamic> json) =>
      _$FollowListItemFromJson(json);

  Map<String, dynamic> toJson() => _$FollowListItemToJson(this);
}